package com.betterwood.dragon.service;

import java.util.List;
import com.betterwood.dragon.dao.SiteDao;
import com.betterwood.dragon.entity.Site;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;

@Service(value = "siteService")
@RequiredArgsConstructor
public class SiteService {
    private final SiteDao siteDao;

    public Site insert(Site site) {
        return siteDao.save(site);
    }

    public List<Site> findAll() {
        return siteDao.findAll();
    }

    public Site findById(String slaveId) {
        return siteDao.getOneById(slaveId);
    }

    public Site save(Site site) {
        return siteDao.save(site);
    }

    // public Keyword findById(String id) {
    // return keywordDao.getOneById(id);
    // }
}